<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <body>
    <div id="app"></div>
    <script src="./src/snabbdom.js"></script>
  </body>
</html>

<style>
  body {
    background: #fafafa;
    font-family: sans-serif;
    margin: 0 auto;
    max-width: 800px;
  }
  .row {
    min-height: 100px;
    display: flex;
    margin-top: 20px;
    border: 1px solid gainsboro;
    align-items: center;
    position: relative;
  }
  .rank {
    display: inline-block;
    width: 100px;
    text-align: center;
  }
  .title {
    display: inline-block;
    width: 160px;
    line-height: 30px;
  }
  .desc {
    line-height: 30px;
    display: inline-block;
    width: 500px;
  }
  .top {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .select {
    height: 50px;
    display: flex;
    align-items: center;
    margin-left: 20px;
  }
  a {
    width: 100px;
    border: 1px solid gainsboro;
    margin-right: -1px;
    margin-bottom: -1px;
    display: inline-block;
    height: 50px;
    line-height: 50px;
    text-align: center;
  }
  .delect {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    display: inline-block;
    text-align: center;
    color: red;
  }
  .add {
    margin-left: 20px;
    border: 1px solid gainsboro;
    width: 100px;
    height: 50px;
    text-align: center;
    line-height: 50px;
  }
</style>